package com.yunpeng.dishes.dao.model.entity;

import com.yunpeng.dishes.dao.model.BaseDataDO;

import java.math.BigDecimal;
import java.util.Date;

/**
 * DishesDO 菜品数据实体
 *
 * @author : Moore(hemw)
 * @date : 2020-03-26
 */
public class DishesDO extends BaseDataDO {

    /**
     * 菜品名称
     */
    private String name;
    /**
     * 菜品类别
     * 中餐
     * 西餐
     */
    private String category;
    /**
     * 菜色
     * 菜品的细分标识
     * 川菜
     * 鲁菜
     * 湘菜
     * 赣菜
     * 杭帮菜
     * 粤菜
     * 法国菜
     * 意大利菜
     */
    private String type;

    /**
     * 菜品重量
     */
    private BigDecimal weight;

    public DishesDO() {
    }

    public DishesDO(Long id, Short flag, Long creator, Date createTime, Long updater, Date updateTime, String code, String name, String category, String type, BigDecimal weight) {
        super(id, flag, creator, createTime, updater, updateTime, code);
        this.name = name;
        this.category = category;
        this.type = type;
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "DishesDO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", category='" + category + '\'' +
                ", type='" + type + '\'' +
                ", weight=" + weight +
                ", code='" + code + '\'' +
                ", flag=" + flag +
                ", creator='" + creator + '\'' +
                ", createTime=" + createTime +
                ", updater='" + updater + '\'' +
                ", updateTime=" + updateTime +
                "} ";
    }
}
